package com.hskn.hss.module.tlthreshold.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hskn.hss.core.domain.BaseEntity;
import com.hskn.hss.entity.AjaxResult;
import com.hskn.hss.exception.HssException;
import com.hskn.hss.module.depart.entity.SysDepart;
import com.hskn.hss.module.tlthreshold.entity.TlThreshold;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author hskn
 * @since 2021-05-12
 */
public interface ITlThresholdService extends IService<TlThreshold> {

    AjaxResult insert(JSONObject params) throws HssException;

    AjaxResult update(JSONObject params) throws HssException;

    AjaxResult deletebyid(JSONObject params) throws HssException;

    JSONObject getList(BaseEntity entity, JSONObject params) throws HssException;

    TlThreshold getDetail(JSONObject params) throws HssException;

    List getSelectList(JSONObject params);

    TlThreshold getCarOneThresholdFromRedis(String itemId, String alarmNameSearch);

    List<TlThreshold> getCarThresholdsFromRedis(String itemId);

    Map<String, TlThreshold> getThresholdMap();

    Map<String, List<TlThreshold>> getThresholdListMap();
}
